package cn.txun.csmall.sentinal.study.block;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class GlobalBlockException {
    /**
     * 当前工程所有可能限流的降级处理全部放在这个类中
     */
    public static String sayHiBlockHandle(String name, BlockException e){
        log.error("BlockException",e);
        return "sorry,error happened,"+name;
    }

}
